class CreateItems < ActiveRecord::Migration
  def self.up
    create_table :items do |t|
      t.string :item_name, :null => false
      t.text :item_description
      t.boolean :global_item
      t.references :firm

      t.binary :item_picture
      t.string :picture_content_type
      t.string :picture_filename

      t.timestamps
    end
  end

  def self.down
    drop_table :items
  end
end
